package com.szqhyxj.youxiangju.biz.splash;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.szqhyxj.youxiangju.R;
import com.szqhyxj.youxiangju.biz.entrace.EntranceManager;
import com.szqhyxj.youxiangju.biz.merchantHome.MerchantContainerActivity;
import com.szqhyxj.youxiangju.biz.partnerHome.PartnerContainerActivity;

public class SplashActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        if (EntranceManager.INSTANCE.isMerchant()) {
            MerchantContainerActivity.start(this);
        } else {
            PartnerContainerActivity.start(this);
        }
        finish();
    }
}